#ifndef CARD_H
#define CARD_H
#include <bits/stdc++.h>
#include <winsock2.h>
#include <mysql.h>
class Card
{
    public:
        Card();
        virtual ~Card();
        int add_card_to_user(char* username, MYSQL *con);
        int set_start_time(char *ttime);
        int set_card_type(int val);
        int set_card_times(int val);
        int get_card_times();
    protected:
    private:
        char start_time[100];
        int card_id;
        int user_id;
        int card_type; // 1 for year card, 2 for time card
        int times;
};

#endif // CARD_H
